package com.yhb.service;

import com.yhb.model.BranchBank;
import com.yhb.model.Card;
import com.yhb.model.User;

import java.util.Calendar;
import java.util.List;

public interface CardService {
    String bindCard(Card card, User user);

    void verifyCard(String token, String verifyCode, User user);

    Card card(String cardId);

    Card cardWithOwnerCheck(String cardId, String userId);

    Card addCard(Card card, String userId);

    void modifyCard(Card card);

    List<Card> getUserCard(String userId);

    Card maskedCard(Card card);

    void setDefaultCard(String cardId, String userId);

    List<BranchBank> searchSubBank(String bankName, String province, String city);

    void deleteCard(String cardId, String userId);

    String getChangeCardPhoneNumberSms(String cardId, String userId, String phoneNumber);

    void verifyChangeCardNumber(String smsToken, String verifyCode, String userId);

    Card userDefaultCard(User user);

}
